// 判断window和mac系统
export default function OSnow() {
  let agent = navigator.userAgent.toLowerCase();
  let isMac = /macintosh|mac os x/i.test(navigator.userAgent);
  let OSnow = "";
  if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
    OSnow = "windows";
  }
  if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
    OSnow = "windows";
  }
  if (isMac) {
    OSnow = "mac";
  }
  return OSnow;
}
